import Vue from 'vue';
import App from './App';
import router from './router';
import axios from 'axios';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';    // 默认主题
import '../static/css/icon.css';
import Axios from 'axios'
import "babel-polyfill";
import VueAxios from 'vue-axios'
import jquery from 'jquery';
import qs from 'qs';
import store from './store';
// import Vuex from 'vuex';

// Vue.use(Vuex);

// const store = new Vuex.Store({
// 	state:{
// 		a:1
// 	}
// })

Vue.use(VueAxios,axios,qs);
Vue.use(ElementUI, { size: 'small' });
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
Vue.prototype.$axios = axios;
Vue.prototype.$qs = qs;

new Vue({
	store,
    router,
    // Vuex,
    render: h => h(App)
}).$mount('#app');